﻿namespace Borg.AddOn
{
    public interface ICompositionPermissionHook
    {
        bool CanCreate(ExtensionType extensionType, out LogArgs log);
        bool CanPlug(Slot slot, Plug plug, out LogArgs log);
        bool CanTag(Slot slot, Plug plug, string tag, out LogArgs log);
        bool CanUnplug(Slot slot, Plug plug, out LogArgs log);
        bool CanUntag(Slot slot, Plug plug, string tag, out LogArgs log);
    }
}

